import { _decorator, Component, director, Node } from 'cc';
import { createCube } from './createCube';
import { createBullet } from './createBullet';
const { ccclass, property } = _decorator;

@ccclass('gameManger')
export class gameManger extends Component {
    @property({type:createCube}) cubeController:createCube = null!
    @property({type:createBullet}) bulletController:createCube = null!
    start() {

    }
    reset(){
        this.cubeController.destroyAllChildren();
        this.bulletController.destroyAllChildren();
        this.cubeController.createCube()
    }
    update(deltaTime: number) {
        
    }

    back(){
        director.loadScene("start")
    }
}


